package cuiyt.datastructure.set;

/**
 * @author cyt
 * @create 2021-01-12 下午 10:47
 */
public class SetTest {

    public static void main(String[] args) {

        ListSet<Integer> set = new ListSet<>();
        set.add(12);
        set.add(12);
        set.add(11);
        set.add(11);
        set.add(10);

        set.traversal(new Set.Visitor() {
            @Override
            public boolean visit(Object element) {
                System.out.println(element);
                return false;
            }
        });
    }
}
